from conftest import login_token5
import requests,pytest

class Test_yueche:
    # 查询收藏二手车
    def test_yuece_01(self,login_token5):
        userId,token=login_token5
        url='http://10.59.9.18/car-user/user/verify/v1/findCollectSecondCarList'
        headers={
            'userId':str(userId),
            'token':str(token)
        }
        data={
            'page':2,
            'size':10
        }
        r=requests.get(url=url,headers=headers,params=data)
        r_json=r.json()
        print(r_json)

    #取消收藏
    def test_yuece_02(self,login_token5):
        userId,token=login_token5
        url='http://10.59.9.18/car-choose/secondCar/verify/v1/cancelCollectSecondCar'
        headers={
            'userId':str(userId),
            'token':str(token)
        }
        data={
            'secondCarId':28
        }
        r=requests.delete(url=url,headers=headers,params=data)
        r_json=r.json()
        print(r_json)

